home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7108 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: wkaufman.us.oracle.com!wkaufman
  2. From: wkaufman@wkaufman.us.oracle.com (William Kaufman)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: string and NULL :question
  5. Date: 19 Feb 1996 01:55:43 GMT
  6. Organization: Oracle Corporation, Redwood Shores CA
  7. Message-ID: <4g8lav$k8m@inet-nntp-gw-1.us.oracle.com>
  8. References: <zakrzews.824018783@pegasus.montclair.edu>
  9. NNTP-Posting-Host: wkaufman.us.oracle.com
  10.  
  11. In article <zakrzews.824018783@pegasus.montclair.edu> zakrzews@pegasus.montclair.edu (Tomas Zakrzewski) writes:
  12. ] Hi   !
  13. ] Is it save to use a string library and stdio library with strings that are
  14. ] no terminated by NULL charater.
  15.  
  16.     No.
  17.  
  18. ] If is not, which function may not work correctly
  19.  
  20.     Anything in ANSI C that takes a "(const) char *".
  21.  
  22. ] and what would happen with non termianded string if a function is applied to
  23. ] that string.
  24.  
  25.     Your program crashes.
  26.  
  27. ] Thanks
  28.  
  29.     You're welcome.
  30.  
  31.                                            -- Bill K.
  32.  
  33. Bill Kaufman               | "I grow old, I grow old, I shall wear the bottom
  34. wkaufman@us.oracle.com     |  of my trousers rolled,..."
  35.                            |     -- the Mole-Man, "Incredible Hulk" annual
  36.